package com.bto.solar.work.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.sql.Timestamp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 仓库员工信息
 * </p>
 *
 * @author adrian
 * @since 2023-09-08
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sto_staff")
@ApiModel(value = "StoStaff对象", description = "仓库员工信息")
public class StoStaff implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("员工ID")
    @TableId(value = "staff_id", type = IdType.INPUT)
    private String staffId;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("电话")
    private String phone;

    @ApiModelProperty("职位")
    private String position;

    @ApiModelProperty("仓库ID")
    private String stoId;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Timestamp createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Timestamp updateTime;

    @ApiModelProperty("是否删除（0：存在，1：删除）")
    private Byte isDeleted;
}
